# -*- coding: utf-8 -*-
# @Time : 2025/2/27 10:16
# @Author : debbyszhang
# @File : apply.py
# @desc :
import allure
from playwright.sync_api import expect

from libs.tools import utils
from pageObject.relay_list_page import RelayListPage


@allure.feature("授权审批")
class TestApply:

    def test_apply(self, page):
        relay_page = RelayListPage(page)
        relay_page.apply('3', 'gateway_name', '驳回')
        t = relay_page.page.locator("#tea-message-root div").inner_text()
        print(t)  # '操作成功'
        assert t == '操作成功'
        # print(page.get_by_role("cell", name=gateway_name).locator("div").text_content())
        # expect(page.get_by_role("cell", name=gateway_name).locator("div")).to_be_visible()
